package br.com.sgdc.view.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import br.com.sgdc.view.WindowConfiguracaoSistema;
import br.com.sgdc.view.WindowPrincipal;

public class ActionConfiguracaoButtonWindowPrincipal implements ActionListener {
	private WindowPrincipal principalPanel;

	public ActionConfiguracaoButtonWindowPrincipal(WindowPrincipal principalPanel) {
		this.principalPanel = principalPanel;
	}

	@Override
	public void actionPerformed(ActionEvent event) {
		if (event.getSource() == principalPanel.configuracaoMenuItem) {
			WindowConfiguracaoSistema panelConfiguracao = new WindowConfiguracaoSistema();
			panelConfiguracao.initComponentesJanela();
		}
	}

}
